<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="module">
        // 直接导入
        import info from "./js/02.myModle.js"
        console.log(info)

        // 默认导入
        import {food,cat,sayHi} from "./js/02.myModle.js"
        console.log(food)
        console.log(cat)
        sayHi()
        
    </script>
</body>
</html>